<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../../common/jspcommon.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="../../common/js.jsp" %>
<%@include file="../../common/css.jsp" %>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
	.validate_error{color: #f69; padding:0 0 0 10px;}
</style>
<title>果果街--找回密码</title>
</head>
<body>
<%@include file="../../common/header.jsp" %>
<div class="w100p pt35 pb35">
    	<div class="w980 mg ">
            <div class="box_s6">
                <div class="l_r_box">
                	<h1>设置您的新密码</h1>	
                    <div class="main_box" id="div1">
                    	<form action="/member/resetpwd.htm" method="post" id="resetPwdForm">
                    	<input type="hidden" value="${memberId }" name="memberId">
                    	<ul class="l_r_layout">
                        	<li>
                            	<label class="def_lbl">新密码：</label><input type="password" class="def_text_1 focus" name="pwd" id="pwd"/>
                            </li>
                            <li>
                            	<label class="def_lbl">确认密码：</label><input type="password" class="def_text_1 focus" name="conPwd"/>
                            </li>
                            <li class="special">
                           		<input type="submit" class="btn_s1" value="确&nbsp;定" />
                            </li>
                        </ul>
                        </form>
                    </div>
                    <div class="main_box" style="display: none;" id="div2">
                    	<p>修改成功</p>
                    </div>
                </div>
                <p class="lr_copy">©2011-2012 果果街 增值电信业务经营许可证：沪B2-20110080 沪ICP备11003519号</p>
                <div class="shadow"></div>
            </div>
       	</div>		
    </div>
	<script type="text/javascript">
	$(function(){
		
		$("#yzm").attr("src","/member/vertifimg.htm?time="+(new Date()).getTime());
		$("#resetPwdForm").validate({
			errorClass:"validate_error",
			rules : {
				pwd : {required : true,minlength : 6,maxlength : 20},
				conPwd : {required : true,equalTo:'#pwd'}
			},
			messages : {
				pwd : {required : "请填写密码",minlength : "密码长度为6～20位",maxlength : "密码长度为6～20位"},
				conPwd : {required : "请再次填写密码",equalTo:"两次密码不一致"}
			},
			submitHandler:function(form) {
				$(form).ajaxSubmit(function(data){
					if(data=="success"){
						$("#div1").hide();
						$("#mEmail").html($("#email").val());
						$("#div2").show();
					}
				});
			}
		});
	});
</script>
</body>
</html>
